<div id="page-wrapper">
    <div class="row headline-check">
        <div class="col-md-12 headline-title" >
            <h3>学员招生 <img src="assets/img/angle-right.png" alt="" class="tubiao"></h3><h4>查看班课合同</h4>
        </div>
    </div>
    <div class="row createbutton" >
        <div class="col-md-2" >
            <button class="search-content" style="background: #4da1ff;color: #fff;	box-shadow: #84bdff 0px 0px 8px;"  onclick="javascript:history.back(-1);" >返回上一页</button>
        </div>
        <div class="col-md-2" >
            <button class="search-content" style="background: #4da1ff;color: #fff;	box-shadow: #84bdff 0px 0px 8px;"   >{{class_name}}</button>
        </div>
    </div>
    <div class="row">
        <div class="col-md-6 revise-left" >
            <div class="containerleft" style="background-color: #f9fffe;">
                <div>
                    <span class="daily-list" style="position: relative;top: 20px;background: #f9fffe;">报课单列表</span>
                </div>
                <table class="table table-hover ">
                    <thead class="yuangong">
                    <tr>
                        <th>报课单编号</th>
                        <th>实际缴费</th>
                        <th>欠费</th>
                        <th>报课日期</th>
                        <th>申请状态</th>
                        <!--<th>操作</th>-->
                    </tr>
                    </thead>
                    <tbody >
                    <tr ng-repeat="data in enrol_datas ">
                        <td>{{data.sn}}</td>
                        <td>{{data.tuition_reality}}</td>
                        <td>{{data.tuition_lack}}</td>
                        <td>{{data.createtime.substring(0,10)}}</td>
                        <td ng-if="data.state==0">未申请</td>
                        <td ng-if="data.state==1">申请中</td>
                        <td ng-if="data.state==2">申请通过</td>s
                        <td ng-if="data.state==3">驳回</td>
                        <!--<td>-->
                            <!--&lt;!&ndash;<span class="operation fa fa-file-text" data-toggle="modal" ng-click="check($index)">查看</span>&ndash;&gt;-->
                        <!--</td>-->
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="containerleft" style="background-color: #fffdf5;">
                <div>
                    <span class="daily-list" >退课单列表</span>
                </div>
                <table class="table table-hover ">
                    <thead class="yuangong">
                    <tr>
                        <th>所退学费</th>
                        <th>退课日期</th>
                        <th>申请状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody >
                    <tr ng-repeat="data in drop_datas ">
                        <td>{{data.tuition}}</td>
                        <td>{{data.createtime,substring(0,10)}}</td>
                        <td ng-if="data.state==2">申请通过</td>
                        <td>
                            <span class="operation fa fa-file-text" data-toggle="modal" data-target="#checkwithdraw" >查看</span>
                        </td>
                    </tr>
                    </tbody>
                </table>

            </div>
            <div class="containerleft" style="background-color: #fefcff;" >
                <div>
                    <span class="daily-list">补交记录</span>
                </div>
                <table class="table table-hover ">
                    <thead class="yuangong">
                    <tr>
                        <th>缴费金额</th>
                        <th>缴费日期</th>
                        <th>缴费类型</th>
                        <th>申请状态</th>
                    </tr>
                    </thead>
                    <tbody >
                    <tr ng-repeat="data in mend_datas ">
                        <td>{{data.amount}}</td>
                        <td>{{data.createtime.substring(0,10)}}</td>
                        <td>{{data.method_name}}</td>
                        <td ng-if="data.state==2">申请通过</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="col-md-6 revise-right">
            <div class="containerright">
                <table width="100%" align="center">
                    <tbody class="revise-information">
                    <tr style="border-bottom: 1px solid #e2e2e3">
                        <td  height="52">合同编号：</td>
                        <td>{{findstudent.pact_sn}}</td>
                        <td>创建合同日期：</td>
                        <td>{{findstudent.createtime.substring(0,10)}}</td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr >
                        <td height="52" style="color: #8c8c8c">学员姓名：</td>
                        <td>{{findstudent.student_name}}</td>
                        <td style="color: #8c8c8c">学员卡号：</td>
                        <td>{{findstudent.student_sn}}</td>
                        <td style="color: #8c8c8c">来源学校：</td>
                        <td>{{findstudent.school}}</td>
                    </tr>
                    <tr >
                        <td height="52" style="color:#8c8c8c">年级：</td>
                        <td>{{findstudent.grade_name}}</td>
                        <td style="color: #8c8c8c">手机号：</td>
                        <td><span ng-if="findstudent.mobile1!=null">{{findstudent.mobile1}} </span><span ng-if="findstudent.mobile2!=null">{{findstudent.mobile2}}</span><span ng-if="findstudent.mobile3!=null">{{findstudent.mobile3}}</span></td>
                        <td style="color: #8c8c8c">所报校区：</td>
                        <td>{{findstudent.campus_name}}</td>
                    </tr>
                    <tr>
                        <td height="52" style="color: #8c8c8c" >负责人职务：</td>
                        <td><span class="responsibility">{{findstudent.role_name}}</span></td>
                        <td style="color: #8c8c8c">负责人：</td>
                        <td><span class="responsibility">{{findstudent.staff_name}}</span></td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="containerright">
                <table width="100%" align="center">
                    <tbody class="revise-information">
                    <tr  style="border-bottom: 1px solid #e2e2e3">
                        <td  height="52"><span class="revise-list" >班课报课情况</span></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td height="52">班级</td>
                        <td>科目</td>
                        <td>已报节数</td>
                        <td>消耗节数</td>
                        <td>单价</td>
                        <td>是否满科</td>
                    </tr>
                    <tr ng-repeat="data in subjectpactclazz">
                        <td height="52"><span class="responsibility-class" style="width: 180px;background: #fef6f9;border: 1px solid #fce5ee">{{class_name}}</span></td>
                        <td><span class="responsibility-class" style="background: #edf5ff;border: 1px solid #f2faff">{{data.subject_name}}</span></td>
                        <td><span class="responsibility-class" style="background: #eae7ff;border: 1px solid #e7e8ff">{{data.number}}</span></td>
                        <td><span class="responsibility-class" style="background: #eae7ff;border: 1px solid #e7e8ff">{{data.number_use}}</span></td>
                        <td><span class="responsibility-class"  style="background: #fef6f9;border: 1px solid #fce5ee">{{data.price}}</span></td>
                        <td ng-if="data.is_total==0"><span class="responsibility-class" style="background: #edf5ff;border: 1px solid #f2faff" >否</span></td>
                        <td ng-if="data.is_total==1"><span class="responsibility-class" style="background: #edf5ff;border: 1px solid #f2faff" >是</span></td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="containerright">
                <table width="100%" align="center">
                    <tbody class="revise-information">
                    <tr  style="border-bottom: 1px solid #e2e2e3">
                        <td  height="52"><span class="revise-list" >学费信息</span></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td height="52" style="color: #8c8c8c">优惠档：</td>
                        <td>{{findstudent.sale_name}}</td>
                        <td style="color: #8c8c8c">减免：</td>
                        <td>{{findstudent.sale_derate}}</td>
                        <td style="color: #8c8c8c">优惠金额：</td>
                        <td>{{findstudent.sale_tuition}}</td>
                        <td style="color: #8c8c8c">总学费：</td>
                        <td>{{findstudent.tuition_total}}</td>
                    </tr>
                    <tr>
                        <td height="52" style="color: #8c8c8c">应缴学费：</td>
                        <td>{{findstudent.tuition_should}}</td>
                        <td style="color: #8c8c8c">已缴学费：</td>
                        <td>{{findstudent.tuition_reality}}</td>
                        <td style="color: #8c8c8c">所欠学费：</td>
                        <td>{{findstudent.tuition_lack}}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

</div>
